package com.example.lib_base;

import android.util.Log;

public class LogUtils {
    private static final String DEBUG = "LogUtils";

    public static void crashIfDebug(Throwable throwable) {
        if (BuildConfig.DEBUG) {
            throw new RuntimeException(throwable);
        }
    }

    public static void logE(String e) {
        if (BuildConfig.DEBUG) {
            Log.e(DEBUG, e);
        }
    }

    public static void logE(String TAG, String e) {
        if (BuildConfig.DEBUG) {
            Log.e(TAG, e);
        }
    }

}
